<div class="form-group">
    <label for="name" class="col-sm-2 control-label">名称</label>
    <div class="col-sm-10">
        #@textInput("text","product.name","name","请输入名称...",product.name??'')
    </div>
</div>
<div class="form-group">
    <label for="cover" class="col-sm-2 control-label">封面图片</label>
    <div class="col-sm-10">
        #@webUploaderBtn(product,"product.cover")
    </div>
</div>
<div class="form-group">
    <label for="cover" class="col-sm-2 control-label">产品图集</label>
    <div class="col-sm-10">
        #@webUploaderMutiBtn(product.imgs()??'',"product.imgs")
    </div>
</div>
<div class="form-group">
    <label for="is_post" class="col-sm-2 control-label">是否包邮</label>
    <div class="col-sm-10">
        <select class="form-control" name="product.is_post" id="isPost">
            <option value="0" #if(product??&&product.is_post==0)selected#end>不包邮</option>
            <option value="1" #if(product??&&product.is_post==1)selected#end>包邮</option>
        </select>
    </div>
</div>
#--
<div class="form-group">
    <label for="deliveryType" class="col-sm-2 control-label">默认快递</label>
    <div class="col-sm-10">
        <select class="form-control" name="product.delivery_type" id="deliveryType">
            <option value="-1">==请选择==</option>
            <option value="1" #if(product??&&product.delivery_type==1)selected#end>顺丰快递</option>
            <option value="2" #if(product??&&product.delivery_type==2)selected#end>圆通快递</option>
            <option value="3" #if(product??&&product.delivery_type==3)selected#end>中通快递</option>
            <option value="4" #if(product??&&product.delivery_type==4)selected#end>申通快递</option>
            <option value="5" #if(product??&&product.delivery_type==5)selected#end>百世快递</option>
        </select>
    </div>
</div>
--#
<div class="form-group">
    <label for="weight" class="col-sm-2 control-label">重量(千克)</label>
    <div class="col-sm-10">
        #@textInput("text","weight","weight","请输入重量...",product.weight??'')
    </div>
</div>
<div class="form-group">
    <label for="price" class="col-sm-2 control-label">售价(元)</label>
    <div class="col-sm-10">
        #@textInput("text","price","price","请输入单价...",product.price??'')
    </div>
</div>
<div class="form-group">
    <label for="price" class="col-sm-2 control-label">成本价(元)</label>
    <div class="col-sm-10">
        #@textInput("text","cost_price","cost_price","请输入成本价...",product.cost_price??'')
    </div>
</div>
<div class="form-group">
    <label for="is_sale" class="col-sm-2 control-label">是否在售</label>
    <div class="col-sm-10">
        <select class="form-control" name="product.is_sale">
            <option value="1" #if(product??&&product.is_sale==1)selected#end>在售</option>
            <option value="0" #if(product??&&product.is_sale==0)selected#end>下架</option>
        </select>
    </div>
</div>
<div class="form-group">
    <label for="desc" class="col-sm-2 control-label">描述</label>
    <div class="col-sm-10">
        #@textAreaInput("product.desc","desc","请输入描述...",product.desc??'')
    </div>
</div>


#--
<div class="form-group">
    <label for="imgs" class="col-sm-2 control-label">图片集</label>
    <div class="col-sm-10">
        #@textInput("text","product.imgs","imgs","请输入图片集...",product.imgs??'')
    </div>
</div>
--#
<div class="form-group">
    <label for="content" class="col-sm-2 control-label">详情内容</label>
    <div class="col-sm-10">
        #@kindEditorInput("product.content",product.content??'')
    </div>
</div>
<div class="form-group">
    <div class="col-sm-offset-8 col-sm-10">
        <button type="button" id="submitBtn" class="btn btn-primary">点我保存</button>
        <input type="hidden" name="product.id" value="#(product.id??'')" id="id">
    </div>
</div>